package com.example.cinema.dto;

public class MovieDTO {
    private Integer id;
    private String title;
    private Integer duration;  // 分钟

    // 构造函数
    public MovieDTO() {
    }

    public MovieDTO(Integer id, String title, Integer duration) {
        this.id = id;
        this.title = title;
        this.duration = duration;
    }

    // getter和setter方法
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Integer getDuration() {
        return duration;
    }

    public void setDuration(Integer duration) {
        this.duration = duration;
    }
}